package com.cetccloud.ap.mapper.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * http数据接口订阅记录表
 *
 * @TableName tb_http_subscribe
 */
@TableName(value = "tb_http_subscribe")
@Data
public class HttpSubscribe implements Serializable {
    /**
     *
     */
    @TableId
    private Long id;

    /**
     * 订阅域id
     */
    private String zoneId;

    /**
     * 订阅http url
     */
    private String url;

    /**
     * 订阅http method
     */
    private String method;

    /**
     * 订阅http header
     */
    private String header;

    /**
     * 订阅http body
     */
    private String body;

    /**
     * 订阅http 增量配置
     */
    private String increment;

    /**
     * 订阅域kafka topic
     */
    private String topic;

    /**
     * 当前订阅位置
     */
    private Long currIncrement;

    /**
     * 订阅状态,0: 创建, 1: 订阅中, 2: 结束
     */
    private Byte status;

    /**
     * 删除标识
     */
    @TableLogic
    private Byte deleted;

    /**
     *
     */
    private Date createTime;

    /**
     *
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}